from pptx import Presentation

ppt = Presentation()

for layout in ppt.slide_layouts:
    # 为该PPT文件添加使用某种布局的幻灯片
    slide = ppt.slides.add_slide(layout)

ppt.save('show_all_layout.pptx')